﻿@using CleanArchitecture.Infrastructure.Models.Business.Columns;
@using CleanArchitecture.Web.FrontendUI;
@model CleanArchitecture.Infrastructure.Models.Business.News.NewsItemModel
@{
    Layout = "~/Views/Shared/_FrontendLayout.cshtml";
    ColumnItemModel CurrentColumn = ViewBag.CurrentColumn as ColumnItemModel ?? null;
    IList<ColumnItemModel> AllColumns = ViewBag.AllColumns as List<ColumnItemModel> ?? null;
    ColumnItemModel RootColumn = ViewBag.RootColumn as ColumnItemModel ?? null;
    IList<ColumnItemModel> columnBreadCrumbs = ViewBag.BreadColumns as List<ColumnItemModel> ?? null;
    int NewsVisitCount = ViewBag.NewsVisitCount;
}

<!--内页banner-->
<section class="zbannerbox">
    <p class="img">@Html.ShowImage(RootColumn.CoverImageUrl, RootColumn.Name)</p>
    <div class="titbox">
        <div class="main">
            <p class="tit wow flipInX">@RootColumn.Name</p>
            <p class="entit wow flipInX" data-wow-delay="0.4s">@RootColumn.SubTitle</p>
        </div>
    </div>
</section>

<!--面包屑-->
<div class="crumbbox">
    <div class="main">
        <p class="crumbs wow fadeInLeft">
            您的位置 ： <i></i>
            <a href="@Url.RouteUrl("Homepage")">首页</a> <span> > </span>
            @if (columnBreadCrumbs != null)
            {
                foreach (var column in columnBreadCrumbs)
                {
                    <span>@column.Name</span>
                    @if (columnBreadCrumbs.IndexOf(column) != columnBreadCrumbs.Count - 1)
                    {
                        <span> > </span>
                    }
                }
            }
        </p>
    </div>
</div>

<p class="h60"></p>
<div class="main">
    <div class="dtl-tit">
        <p class="tit">@Model.Title</p>
        <p class="info">
            <span>来源：@Model.Publisher</span>
            <span>发布日期：@Model.CreatedOnTime.ToString("yyyy-MM-dd")</span>
            <span>阅读：@NewsVisitCount</span>
        </p>
    </div>
    <p class="h50"></p>
    <div class="dtl-con">
        @Html.Raw(Model.Contents)
    </div>

   @* @await Component.InvokeAsync("ArticlePrivatenNext", new { curNewsId = Model.Id, curColumn = CurrentColumn })*@
    <p class="h80"></p>
</div>


